package com.shenyi.wx.service;

import com.shenyi.wx.api.IApiCollectService;
import com.shenyi.wx.dao.ApiCollectMapper;
import com.shenyi.wx.entity.CollectDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class ApiCollectService implements IApiCollectService {
    @Autowired
    private ApiCollectMapper collectDao;


    public CollectDO queryObject(Integer id) {
        return collectDao.queryObject(id);
    }


    public List<CollectDO> queryList(Map<String, Object> map) {
        return collectDao.queryList(map);
    }


    public int queryTotal(Map<String, Object> map) {
        return collectDao.queryTotal(map);
    }


    public int save(CollectDO collect) {
        return collectDao.save(collect);
    }


    public void update(CollectDO collect) {
        collectDao.update(collect);
    }


    public int delete(Integer id) {
        return collectDao.delete(id);
    }


    public void deleteBatch(Integer[] ids) {
        collectDao.deleteBatch(ids);
    }

}
